package com.ruitu.mall_98.activity;

import android.os.Bundle;
import android.text.TextUtils;

public class ServiceAndPrivacyActivity extends WebviewActivity {

    private String type = "1";// 1 服务协议 2 隐私政策

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_service_and_privacy);

        Bundle bundle = getIntent().getExtras();
        if (null != bundle) {
            type = bundle.getString("type");
        }
    }

    @Override
    protected void onStart() {
        super.onStart();

        if (TextUtils.equals("1", type)) {
            webview.loadUrl("file:////android_asset/jb_service.html");
            setHeadTitle("服务协议");
        } else {
            webview.loadUrl("file:////android_asset/jb_privacy.html");
            setHeadTitle("隐私政策");
        }
    }
}
